<?php
/**
 * @author Julien Couture, Guillaume Tostain, Théo Portois
 * @version 1.0.0
 * @date 04/11/2014
 * @brief Classe métier des domaines
 * @details Cette classe sert à instancier les domaines sous forme d'objets.
 */
class Domaine extends \BaseObject {
	private $libelle;
	private $description;
	
	/**
	 * @ManyToOne
	 * @JoinColumn(name="idmonde",className="Monde")
	 */
	private $monde;
	
	/**
	 * @OneToMany(mappedBy="domaine", className="Question")
	 */
	private $questions;
	public function getLibelle() {
		return $this->libelle;
	}
	public function setLibelle($libelle) {
		$this->libelle = $libelle;
		return $this;
	}
	
	public function getMonde() {
		return $this->monde;
	}
	public function setMonde($monde) {
		$this->monde = $monde;
		return $this;
	}
	public function getDescription() {
		return $this->description;
	}
	public function setDescription($description) {
		$this->description = $description;
		return $this;
	}
	public function getQuestions() {
		return $this->questions;
	}
	public function setQuestions($questions) {
		$this->questions = $questions;
		return $this;
	}
	
	public function toString() {
		return $this->libelle;

	}

	public function getId() {
		return $this->id;
	}
	
	
	

	
}